/*eslint-disable*/
export function isDataValid(value) {
    return value !== 999999 && value != "999999";
}

export function getTyphoonGradeInfo(typhGrade) {
    let color, tgStr;
    switch (typhGrade) {
        case "SuperTY":
            color = "#FD0026";
            tgStr = "超强台风";
            break;
        case "SUPERTY":
            color = "#FD0026";
            tgStr = "超强台风";
            break;
        case "STY":
            color = "#FD5C1C";
            tgStr = "强台风";
            break;
        case "TY":
            color = "#FD8B00";
            tgStr = "台风";
            break;
        case "STS":
            color = "#FDB700";
            tgStr = "强热带风暴";
            break;
        case "TS":
            color = "#F4D000";
            tgStr = "热带风暴";
            break;
        case "TD":
            color = "#F6F200";
            tgStr = "热带低压";
            break;
    }
    return {
        color,
        str: tgStr
    }
}